package com.mz.ieann.aide.pager.bean

import android.os.Parcel
import android.os.Parcelable
import com.alibaba.fastjson.annotation.JSONCreator

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> 欢迎页图文
 * <p>
 *
 * @author Created by Administrator
 * @date on 2021 2021/9/12 12:56
 */
class WelComeContent @JSONCreator constructor() : Parcelable {

    var index : Int = 0

    var imgId : Int = -1

    var imgUrl : String? = null

    var des : String? = null

    constructor(parcel: Parcel) : this() {
        parcel.readInt()
        parcel.readInt()
        parcel.readString()
        parcel.readString()
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeInt(index)
        parcel.writeInt(imgId)
        parcel.writeString(imgUrl)
        parcel.writeString(des)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<WelComeContent> {
        override fun createFromParcel(parcel: Parcel): WelComeContent {
            return WelComeContent(parcel)
        }

        override fun newArray(size: Int): Array<WelComeContent?> {
            return arrayOfNulls(size)
        }
    }


}